package com.audaque.springboot.foshanupload.reactor.webfluxdemo.model.pojo;

/**
 * @author zgb
 * @desc ...
 * @date 2023-07-24 22:39:36
 */

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

/**
 * 用户信息.
 *
 * @author zgb
 * @since 2023-05-28 11:38
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Document("user")
public class UserMongodb {

    /**
     * 用户主键id，MongoDB自动生成
     */
    @Id
    private String id;
    public final static String _id = "_id";

    /**
     * 用户id
     */
    private String uid;

    /**
     * 用户姓名
     */
    private String username;
    public static final String _username = "username";

    /**
     * 用户性别
     */
    private String sex;
    public static final String _sex = "sex";

    /**
     * 创建时间
     */
    private Long createdTime;

    /**
     * 更新时间
     */
    private Long updatedTime;
    public static final String _updatedTime = "updatedTime";


}
